package com.app.xinfadi.ui.purchase_plan.produingAreaPrice;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager;
import android.support.v7.widget.Toolbar;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;

import com.app.xinfadi.R;
import com.app.xinfadi.base.BaseActivity;
import com.app.xinfadi.base.BaseFragment;
import com.sevenheaven.segmentcontrol.SegmentControl;

import java.util.ArrayList;

/**
 * function: 产地采购报价详情
 * Created by Wutengfei on 2016/1/25.
 */
public class ProducingAreaPriceDetailActrvity extends BaseActivity {
    private Button checkLogisticsInfoBtn;

    @Override
    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(R.layout.producing_area_price_detail_layout_activity);
        initToolbar();
        initView();
    }

    private void initView() {
        checkLogisticsInfoBtn = (Button)findViewById(R.id.checkLogisticsInfoBtn);
        checkLogisticsInfoBtn.setOnClickListener(this);
    }

    private void initToolbar() {
        mToolbar = (Toolbar) findViewById(R.id.toolbar);
        mToolbar.setTitle("");
        setSupportActionBar(mToolbar);
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);
        TextView title = (TextView) findViewById(R.id.titleTv);
        title.setVisibility(View.VISIBLE);
        title.setText("自发采购申请详情");
        mToolbar.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.checkLogisticsInfoBtn:
                Intent intent = new Intent(context,LogisticsInfoActivity.class);
                startActivity(intent);
                break;
        }
    }
}
